﻿package mortal.game.view.combinedServer.rank
{
    import com.mui.controls.*;
    import mortal.game.view.combinedServer.data.*;
    import mortal.game.view.common.*;
    import mortal.game.view.copy.GroupTowerCopy.data.*;
    import mortal.game.view.rebate.item.*;

    public class CombinedSerReRankCell2 extends GCellRenderer
    {
        protected var _list:CellsGridSprite;

        public function CombinedSerReRankCell2()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._list = UIFactory.getUICompoment(CellsGridSprite);
            this._list.colNum = 5;
            this._list.vCellWid = 45;
            this._list.hCellWid = 100;
            this._list.genCellFun = this.genItem;
            this._list.genCells(5);
            this._list.x = 40;
            this._list.y = 55;
            this.addChild(this._list);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._list = null;
            super.disposeImpl(param1);
            return;
        }// end function

        private function genItem() : RebateItem2
        {
            var _loc_1:* = UIFactory.getUICompoment(RebateItem2);
            return _loc_1;
        }// end function

        override public function set data(param1:Object) : void
        {
            var _loc_2:* = param1.num as int;
            var _loc_3:* = CombinedSerUtil.rankGiftArr;
            var _loc_4:* = _loc_3.indexOf(_loc_2);
            if (_loc_4 != -1)
            {
                RewardCfgUtil.updateRwListByGiftCode(_loc_2, this._list);
            }
            return;
        }// end function

    }
}
